//本地存储的存储或提取
function getStorage(key){
  return JSON.parse(sessionStorage.getItem(key));
}

function setStorage(key,value){
  let valueStr = JSON.stringify(value);
  sessionStorage.setItem(key,valueStr);
}